package character;

import org.newdawn.slick.Animation;
import org.newdawn.slick.Image;

public class Movement extends Animation {

	private boolean flag;
	
	public Movement(Image[] img,Image st){
		super(img,200);
		addFrame(st, 200);
		flag = false;
		setDuration(getFrameCount()-2, 0);
	}
	
	public boolean getFlag(){
		return flag;
	}
	
	public void setFlag(boolean f){
		flag = f;
	}

	public void standing(){
		setCurrentFrame(getFrameCount()-1);
		stop();
	}
	
}
